home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Archives / MoreHardware / TandbergConf.lzh / Tandberg.specs < prev    next >
Encoding:
Text File  |  1994-02-23  |  5.9 KB  |  160 lines

  1.  
  2. From:    Goncal Badenes <badenes@imec.be>
  3. Subject: Re: IBM/Tandberg TDC3600/250Mb SCSI Tape Drives
  4.  
  5. Return-Path: <badenes@imec.be>
  6.  
  7. Hi!
  8.  
  9. Here is the information I have on the Tandberg 3600...
  10.  
  11. In order to configure the drive you have to send an SCSI mode select (15h)
  12. command to it. Its format is:
  13.  
  14. Byte    | bit   7       6       5       4       3       2       1       0
  15. --------+-------------------------------------------------------------------
  16. 00      |       0       0       0       1       0       1       0       1
  17. 01      |              LUN          |           Reserved
  18. 02      |                       Reserved
  19. 03      |                       Reserved
  20. 04      |               Length of parameter list
  21. 05      |       X  |   SMP   |          Reserved           |  Flag   |  Link
  22.  
  23. Following that, you have to send the parameter list, which consists of a
  24. four-byte header followed by one Block Descriptor Page (8 bytes) and 12
  25. bytes of additional Mode Select Parameters (Vendor Unique Parameters).
  26. A total of 24 bytes.
  27.  
  28. The Parameter list is specified as follows:
  29.  
  30. Byte    | bit   7       6       5       4       3       2       1       0
  31. --------+-------------------------------------------------------------------
  32. 00      |                               00
  33. 01      |                               00
  34. 02      |               00          |   BM   |             00
  35. 03      |                       Block Descriptor Length (=08)
  36.  
  37. Block Descriptor:
  38.  
  39. Byte    | bit   7       6       5       4       3       2       1       0
  40. --------+-------------------------------------------------------------------
  41. 00      |                         Density Code
  42. 01      |                               00
  43. 02      |                               00
  44. 03      |                               00
  45. 04      |                               00
  46. 05      |                               00
  47. 06      |                       Block Size MSB (=02)
  48. 07      |                       Block Size LSB (=00)
  49.  
  50. Vendor Unique Parameters:
  51.  
  52. Byte    | bit   7       6       5       4       3       2       1       0
  53. --------+-------------------------------------------------------------------
  54. 00      |                         Page Code (=00)
  55. 01      |                         Write Threshold
  56. 02      |                         Read Threshold
  57. 03      |                           Buffer Size
  58. 04      |                    Forced Streaming Count (MSB)
  59. 05      |                    Forced Streaming Count (LSB)
  60. 06      |                          Bus Threshold
  61. 07      |                         Copy Threshold
  62. 08      |                      Normal Sense Threshold
  63. 09      |                       Copy Sense Allocation
  64. 10      |                          Load Function
  65. 11      |                 Power-Up Auto Load/Retension Delay
  66.  
  67.  
  68.  
  69. Now, to the meaning of some of these things:
  70.  
  71. * If the SMP bit (byte 05, Mode select command) is set, the selected
  72. mode will be permanent, i.e. the drive will remember the configuration
  73. even if you power it down.
  74.  
  75. * Density code (default: 0): specifies the tape format that should be
  76. used when writing the tape.
  77.  
  78.         Format          Code
  79.         QIC-120         0F
  80.         QIC-150         10
  81.  
  82. This means that you can really write your good old QIC-120 tapes
  83. (DC-600A), if you send the appropriate mode select command to the drive
  84. before trying to write it.
  85.  
  86. * Load Function (default: 0): Specifies if the drive shall perform Auto
  87. Load or Auto Retension after insertion of a cartridge. The functions
  88. are:
  89.  
  90.         Auto Load:      00
  91.         Auto Retension: 01
  92.  
  93. * Power-up auto-load/auto-retension delay: The delay that should be
  94. applied before an auto-load or auto-retension is started after Power-Up
  95. (in 100ms increments).
  96.  
  97.  
  98. That was the raw information. Now I can give you some examples which
  99. worked in my particular setup. I recently upgraded the drive to SCSI-2
  100. firmware, and now it works even better :)
  101.  
  102. The program I use for communicating with the drive is tape, wich you can
  103. find in the gtak212b package for os/2 (if you want it, you will find it
  104. in ftp-os2.cdrom.com, somewhere in /pub/os2/2_x/...).
  105.  
  106. The first thing you should do is to issue a mode sense to the tape, and
  107. save the data it returns as a backup information. You never now what you
  108. could screw... (if you don't set the SMP bit, anything should be fixed
  109. with a power cycle, hopefully). The format of the data returned from a
  110. mode sense command is equivalent to that of the mode select, whith the
  111. execption of bytes 00 and 01 of the header, which have to be set to 0 in
  112. the mode select command.
  113.  
  114. if you are using the gtak212b package:
  115.  
  116.         tape CMD cdb=1A,0,0,0,18,0;rlen=24;rfile=mode.dat
  117.  
  118. sends a mode sense command and saves in the file mode.dat the (binary)
  119. information of your current tape setup.
  120.  
  121. In order to send a mode setup to the drive you can do:
  122.  
  123.         tape CMD cdb=15,0,0,0,0c,0 wdata=0,0,10,8,f,0,0,0,0,0,2,0
  124.  
  125. This command just sets the density code to 0F, thus allowing you to
  126. write DC600 tapes.
  127.  
  128. To reset the tape density to the default value, I send a
  129.  
  130.         tape CMD cdb=15,0,0,0,0c,0 wdata=0,0,10,8,0,0,0,0,0,0,2,0
  131.  
  132. command.
  133.  
  134. If I would ever need to reset the tape to the factory values (note that
  135. these were the factory values from *my* tape, they could differ in your
  136. case), I would send the following command:
  137.  
  138. tape cdb=15,0,0,0,18,0 wdata=0,0,10,8,0,0,0,0,0,0,2,0,0,2,2,70,0,0,8,0,0,0,1,64
  139.  
  140. And the command I sent to avoid (permanently) auto-retensioning was:
  141.  
  142. tape cdb=15,0,0,0,18,40
  143.      wdata=0,0,10,8,0,0,0,0,0,0,2,0,0,2,2,70,0,0,8,0,0,0,0,64
  144.  
  145. I hope this will be of some help to all of you. Please note that you
  146. should send these commands when no other application is trying to access
  147. the SCSI bus...
  148.  
  149. I whish you lots of fun with your tape drive!
  150.  
  151. Later,
  152.  
  153.     Goncal
  154.  
  155. --
  156. Goncal Badenes                          Tel: +32 16 281529
  157. IMEC - ASP/MP Division                  Fax: +32 16 281214
  158. Kapeldreef 75                           e-mail: badenes@imec.be
  159. B-3001 Leuven (Belgium)                         goncal@cnm.es
  160.